package com.baizhi.cmfz.controller;

import com.baizhi.cmfz.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("article")
public class ArticleController {
    @Autowired
    private ArticleService articleService;

    @RequestMapping("selectArticle")
    public Map selectArticle(int page,int limit) {
        Map map = articleService.selectArticle(page,limit);
        return map;
    }
}
